package com.example.littleSpider.myapplication.activity;



import android.content.Intent;
import android.view.View;
import com.example.littleSpider.myapplication.R;
import com.example.littleSpider.myapplication.base.BaseActivity;
import com.example.littleSpider.myapplication.myInterfaces.MethodInTitle;
import com.example.littleSpider.myapplication.view.TitleView;



import butterknife.BindView;
import butterknife.OnClick;
import es.dmoral.toasty.Toasty;

/**
 * Created by EDZ on 2017/12/14.
 * 赶快-个人中心界面
 */

public class HurryupPersonalActivity extends BaseActivity implements MethodInTitle{
    @BindView(R.id.title_view)
    TitleView title_view;


    @Override
    protected int getLayoutRes() {
        return R.layout.activity_hurryuppersona;
    }

    @Override
    protected void initView() {
        title_view.initMyTitle("赶快-个人中心", this);
        title_view.showRightTwo(false);
        title_view.hideTitleTextImage();
    }

    //各条目点击事件
    @OnClick({R.id.layout_myincome,R.id.layout_mysend,R.id.layout_mydelivery,R.id.layout_receivesure,R.id.layout_applydriver,R.id.layout_applydot})
    public void HurryuppersonalClick(View view){
        switch (view.getId()){
            case R.id.layout_myincome:
                Toasty.success(this,"我的收入").show();
                startActivity(new Intent(this,MyIncomeActivity.class));
                break;
            case R.id.layout_mysend:
                Toasty.success(this,"我的发单").show();
                startActivity(new Intent(this,MySendActivity.class));
                break;
            case R.id.layout_mydelivery:
                Toasty.success(this,"我的派送").show();
                startActivity(new Intent(this,MyDeliveryActivity.class));
                break;
            case R.id.layout_receivesure:
                Toasty.success(this,"网点收发货确认").show();
                startActivity(new Intent(this,ReceivesureActivity.class));
                break;
            case R.id.layout_applydriver:
                Toasty.success(this,"申请成为司机").show();
                startActivity(new Intent(this,ApplyDriverActivity.class));
                break;
            case R.id.layout_applydot:
                Toasty.success(this,"申请成为网点").show();
                startActivity(new Intent(this,ApplyDotActivity.class));
                break;

        }
    }

    @Override
    protected void initData() {

    }

    @Override
    public void setGoBack() {
        finish();
    }

    @Override
    public void onRightOne() {

    }

    @Override
    public void onRightTwo() {

    }

    @Override
    public void onTitleText() {

    }
}
